package org.jmc.refmanager.web.wicket.page;

import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.WebPage;
import org.jmc.refmanager.security.SecurityHelper;
import org.jmc.refmanager.web.wicket.security.RefManagerAuthenticatedWebSession;

/**
 */
public class SignOutPage extends WebPage {

	/**
	 * @param parameters
	 */
	public SignOutPage(PageParameters parameters) {
		super(parameters);
		RefManagerAuthenticatedWebSession.get().signOut();
        getSession().invalidate();
        SecurityHelper.clearContext();
        setRedirect(true);
        setResponsePage(getApplication().getHomePage());
	}

	
}

